import Vue from 'vue'
import Router from 'vue-router'
import login from '@/login/login'
import menu from '@/menu/menu'
import main from '@/main/main'
Vue.use(Router)
export default new Router({
  routes: [
    {
      path: '/main',
      name: 'main',
      component: main,
    },
    {
      path:'/login',
      name:'login',
      component:login,
      meta: { requiresAuth: true
      },
    },
    {
      path:'/menu',
      name:'menu',
      component:menu,
      meta: { requiresAuth: true},
    },
    {
      path: '*',
      name:'main1',
      redirect:'/main',
    }
  ]
})
